namespace ETestIT.Core.Infrastructure
{
    using Microsoft.Practices.ServiceLocation;

    public static class IoC
    {
        public static T Resolve<T>()
        {
            return ServiceLocator.Current.GetInstance<T>();
        }

        public static T Resolve<T>(string name)
        {
            return ServiceLocator.Current.GetInstance<T>(name);
        }
    }
}